<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <!-- 数值类型
        字符串类型
        布尔类型
        空类型 null 有空值 undefined 没有值
    -->

    <script>

        var n1 = 100
        var result1 = typeof n1
        console.log(result1);

        var n2 = "100"
        var result2 = typeof n2
        console.log(result2);

        var n3 = true
        var result3 = typeof n3
        console.log(result3);

        var n4 = null
        var result4 = typeof n4
        console.log(result4);

        var n5
        var result5 = typeof n5
        console.log(result5);

    </script>
    
</body>
</html>